package com.yc.jpyy.bandw.dao;

import java.util.List;
import java.util.Map;
import org.springframework.dao.DataAccessException;
import com.yc.jpyy.base.dao.BaseDao;

public interface BAndWDao extends BaseDao{ 


	int addBAndWDao(Map<String, Object> paramsMap) throws DataAccessException;

	int updateBAndWDao(Map<String, Object> paramsMap) throws DataAccessException;


	int delforUpdateBAndWDao(Map<String, Object> paramsMap) throws DataAccessException;
	
	Map<String, Object>  findBAndWByIdDao(Map<String, Object> paramsMap) throws DataAccessException;
	
	 //分页查询
	List<Map<String, Object>> findBAndWDao(Map<String, Object> paramsMap)throws DataAccessException;
	  
	  //查询总数
	int findCountBAndWDao(Map<String, Object> paramsMap)throws DataAccessException;
	
	int findBAndWCheckBlackDao(Map<String, Object> paramsMap) throws DataAccessException;
	
	
	//联表的分页查询
	List<Map<String, Object>> findBAndWPages(Map<String, Object> paramsMap)throws DataAccessException;
		  
	//联表的查询总数
	int findBAndWCounts(Map<String, Object> paramsMap)throws DataAccessException;
	
	// 根据人员ID或车辆ID获得黑名单历史记录。
	//传入参数，dbcode，objecttype（对象类型：1，司机；2，车辆），objectId(对象ID(司机id或车辆id)
	//返回 黑名单list
	List<Map<String, Object>> findBAndWDaoByParamIdDao(Map<String, Object> paramsMap)throws DataAccessException;

	List<Map<String, Object>> findBAndWDaoByCompanyId(Map<String, Object> paramsMap)throws DataAccessException;
	
}
